package common;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * @Author Qiqi
 * @Date 2020/11/16 17:19
 */
public class BasePage {
    WebDriver webDriver;
    public BasePage(WebDriver webDriver){
        this.webDriver =  webDriver;
    }

    public void click(By by){
        webDriver.findElement(by).click();
    }
    public void senkey(By by,String name){
        webDriver.findElement(by).sendKeys(name);
    }
    public BasePage(){

    }
}
